<?php
/*****************************************************/
//设置全局配置变量，使用方法如下：
//$weixin=Yii::$app->params['wechat_authorization']; //返回数组
/*****************************************************/
return [
    'adminEmail' => 'admin@example.com',
    'supportEmail' => 'support@example.com',
    'user.passwordResetTokenExpire' => 3600,
    //定义密码加密前缀
    'prefixPassword' => 'jd_mall',
    //后台登录会话时效 单位秒
    'backend_session_timeout' => 7200,
    //短信验证码时效
    'sms_code_timeout' => 60,
    //前台会员登录会话时效 单位秒
    // mod by FDG367 2017-01-17 记录微信登录缓存 454 start
    //'frontend_session_timeout' => 7200,
    'frontend_session_timeout' => 86400,
    // mod by FDG367 2017-01-17 记录微信登录缓存 454 start
    //前台导航缓存时效 单位秒
    'frontend_nav_session_timeout' => 3600,
    // add by FDG367 2017-01-17 记录微信登录缓存 437 start
    'frontend_wechat_redirect_uri' => 300,
    // add by FDG367 2017-01-17 记录微信登录缓存 437 start
    //静态资源url
//     'imageBathUrl' => 'http://jdtest.static.com',
    'version'=>'1.0.1.0005',
    'versions'=>'1.0.1.0004',
    //REDIS前缀
    'sys_redis_prefix' =>'jd_mall_test_',
    //前段记住密码的cookie的key
    'frontend_master_auto_login_cookie_key' =>'jd_mall_test_master_auto_login_cookie',
    'sms_switch'=>'on',
    'sms_log_switch'=>'on',
    //'soap_genre_url'=>'http://202.1.80.31:8001/ForWX.asmx?wsdl',     //测试环境获取线下用户信息对应的网关
    'soap_genre_url'=>'http://202.1.80.31:8001/ForEC.asmx?wsdl',     //测试环境获取线下用户信息对应的网关
    //点客短信平台接口URL
    'sms_dianke'=>'http://175.102.15.131/msg/HttpSendSM?account=yungui&pswd=TZV0rLL@',

    /*域名配置*/
    'pc'=>'http://www.jdstb.com',				//正式地址
    'wap'=>'http://m.jdstb.com',				//手机正式地址
    'api'=>'http://api.jdstb.com',				//接口访问地址
    'static'=>'http://127.0.0.1:9013/images/',		//静态资源地址
    'backend'=>'http://backend.jdstb.com',		//后台地址

    /*官网外联*/
    'officerlink' => 'http://www.shanghaihomeexpo.com/museum/detail/24.html',	//官别
    'tourlink' => 'http://www.shanghaihomeexpo.com/aboutus/shop_wz.html',	//首页商品导览链接
    'waptourlink' => 'http://m.shanghaihomeexpo.com/aboutus/story_jd.html',	//首页商品导览链接

    /**上传地址**/
    'imageBathUrl' => 'http://127.0.0.1:9013/images/',							//静态资源地址 TODO 待删除
    'imageCurlUrl' => 'http://127.0.0.1:9013/comm/pic-upload',			    //远程上传地址

    /*二维码生成相关地址*/
    'get_wechat_url' => 'http://www.jdstb.com/goods/get-goods-url',		//获取二维码链接
    'wechat_url_logo' => 'http://www.jdstb.com/goods/qrcode',			//手机分享二维码生成地址

    /*获取token地址*/
    'jdstb_shanghaihomeexpo_token'=>'http://api.shanghaihomeexpo.com/token.php',

    /*微信授权回调地址*/
    'wechat_callback_url'		=>'http://m.jdstb.com/login/wechat-login-callback',

    /*扫码登录回调地址*/
    'wechat_pc_callback_url'	=>'http://www.jdstb.com/login/wechat-login-callback',

    /*微信授权配置*/
    'wechat_authorization'=>[
        'debug'  => true,
        'app_id' => 'wxdd0ebd2792eb800d',
        'secret' => 'b17d24b5be1c12c791c76ccca4cf2f53',
        'token'  => '',
        'log' => [
            'level' => 'debug',
            'file'  => '',
        ],
    ],

    /*pc微信扫码key*/
    'wechat_scan_code'=>[
        'debug'  => true,
        'app_id' => 'wx5d353846aabfc2cd',
        'secret' => '26282de2c06186fbe2ba90f68d73bab3',
        'token'  => 'abc',
        'log' => [
            'level' => 'debug',
            'file'  => '',
        ],
    ],

    /*pc_udesk客服配置*/
    'udesk'=>[
        'code'  => '1k3kefe9',
        'link' => 'http://jdstb.udesk.cn/im_client?web_plugin_id=35447',
    ],

    //商品详情页客服配置
    'udesk_goods_detaill'=>[
        'code'  => '1k3kefe9',
        'link' => 'http://jdstb.udesk.cn/im_client?web_plugin_id=35447',

    ],

    /*手机udesk*/
    'wap_udesk'=>[
        'code'  => '1k3kefe9',
        'link' => 'http://jdstb.udesk.cn/im_client/?web_plugin_id=39878',
        'mobile'=>[
            "mode"=> "blank",
            "color"=> "#307AE8",
            "pos_flag"=> "irb",
            "onlineText"=> "联系客服，在线咨询",
            "offlineText"=> "客服下班，请留言"
        ],
        'css'=>[
            'bottom'=>'4.5rem',
            'right'=>'0.8rem',
            'width'=> '1.5rem',
            'display'=>'none'
        ]
    ],

];
